package com.sitech.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class User2 implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -9092138131635414046L;
	public String id;
	public String username;
	public String password;
	public Date createtime;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public Date getCreatetime() {
		return createtime;
	}
	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	
	@Override
	public String toString() {
		return "User2 [id=" + id + ", username=" + username + ", password=" + password + ", createtime=" + createtime
				+ "]";
	}
	@Override
	public boolean equals(Object obj) {
		User2 bn = (User2)obj;
		if(bn.getUsername().equals(username)&&bn.getPassword().equals(password)){
			return true;
		}else{
			return false;
		}
	}
	
}
